﻿using HelloOne.NewsSvc.Models;
using Microsoft.EntityFrameworkCore;

namespace HelloOne.NewsSvc.DBLib
{
    public class NewsSvcDBContext : DbContext
    {
        public NewsSvcDBContext(DbContextOptions options) : base(options) { }

        public DbSet<News> News { get; set; }
        public DbSet<Category> NewsCategory { get; set; }

        public DbSet<Menu> Menu { get; set; }
        public DbSet<MenuCategory> MenuCategory { get; set; }
    }
}
